print two digits after decimal python

47

print two digits after decimal python -

float = 2.154327
format_float = "{:.2f}".format(float)
print(format_float)

Comments

Submit
0 Comments